package com.sk.sqd.decorator;

import com.sk.sqd.component.Component;

/**
 * 具体装饰器，给
 */
public class ConcreteDecorator extends Decorator {

    public ConcreteDecorator(Component component) {
        super(component);
    }

    public void operation() {
        super.operation();
        addFunction();
    }

    public void addFunction() {
        System.out.println("为具体角色增加的额外功能 addFunction() ~~~");
    }
}
